const mongoose = require('mongoose')

const testSchema = new mongoose.Schema({
    date: String,
    time: String,
    title: String,
    typeId: {
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'typeModel'
    },
    exercisesId: [{
        type: mongoose.SchemaTypes.ObjectId,
        ref: 'exerciseModel'
    }]
})

mongoose.model('testModel',testSchema,'tests');
module.exports.testModel = 'testModel';